<template>
  <div>
  <!-- 首页轮播图 -->
  <swiper :swip="swip" :isfull="true"></swiper>
<!-- 六宫格 -->
    <ul class="mui-table-view mui-grid-view mui-grid-9">
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/newslist">
		    <span class="mui-icon mui-icon-list"></span>
		    <div class="mui-media-body">新闻资讯</div></router-link></li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/images">
		    <span class="mui-icon mui-icon-image"></span>
		    <div class="mui-media-body">图片分享</div></router-link></li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/goods">
		    <span class="mui-icon mui-icon-extra mui-icon-extra-heart-filled"></span>
		    <div class="mui-media-body">商品购买</div></router-link></li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/feedback">
		    <span class="mui-icon mui-icon-email"></span>
		    <div class="mui-media-body">留言反馈</div></router-link></li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/discount">
		    <span class="mui-icon mui-icon-extra mui-icon-extra-gift"></span>
		    <div class="mui-media-body">优惠专区</div></router-link></li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/contact">
		    <span class="mui-icon mui-icon-phone"></span>
		    <div class="mui-media-body">联系我们</div></router-link></li>
	  </ul> 
  </div>
</template>

<script>
import axios from 'axios'
//导入轮播图组件
import swiper from '../subcomponents/swiper.vue'
export default {
  data(){
    return{
      swip:[] //首页轮播图需要的图片
    }
  },
  created(){
    this.getswiperimg()
  },
  methods:{
    //获取首页轮播图数据
    getswiperimg(){
      axios.get("api/getlunbotu").then(res=>{
        this.swip=res.data.message
      })
    }
  },
  components:{
    swiper
  }
}

</script>

<style lang="less" scoped>

.mui-grid-view.mui-grid-9{
    background-color: #fff;
    border: none;
    .mui-table-view-cell{
      border: none;
      .mui-media-body{
        font-size: 14px;
      }
    }
    .mui-icon:hover{
        color:#26a2ff;
      }
  }
  
</style>